package com.itheima.advantagesup.mapper;

import com.itheima.advantagesup.entity.SysMenu;
import com.itheima.advantagesup.entity.SysRole;
import com.itheima.advantagesup.entity.addRole;
import com.itheima.advantagesup.vo.RoleVO;
import org.apache.ibatis.annotations.Mapper;

import javax.management.relation.Role;
import java.util.List;
import java.util.Map;

/**
 * SysRoleMapper
 *
 * @author liliudong
 * @version 1.0
 * @description
 * @date 2023/7/26 17:51
 */
@Mapper
public interface SysRoleMapper {
    /**
     * 选择名单由ids
     *
     * @param roleIds 角色id
     * @return {@link List}<{@link String}>
     */
    List<String> selectNameListByIds(List<String> roleIds);

    List<SysRole> list(String name);

    List<SysRole> allData();

    Integer count();

    void delRoleById(String id);

    SysRole rowInfoRoleById(String id);

    void addRole(RoleVO roleVO);

    void addRoleMenu(addRole roles);

    void delRoleMenuById(String id);

    List<SysMenu> rowInfoMenuById(String id);

    void updateRole(RoleVO roleVO);
}
